//Page Object
Page({
  data: {
    articleList:[
      {
        id:0,
        title:'隐私协议',
        content:'我是隐私协议'
      },
      {
        id:1,
        title:'服务协议',
        content:'我是服务协议'
      }
    ],
    currentArticleId:0
  },
  //options(Object)
  onLoad: function(options){
    // 0是隐私协议，1是用户协议
    if(options){
      this.setData({
        currentArticleId:options.id
      })
      let title = options.id == 0 ? '隐私协议' : '服务协议'
      wx.setNavigationBarTitle(title)
    }
  },
});